package com.itheima.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.mapper.OmsCompanyAddressMapper;
import com.itheima.pojo.OmsCompanyAddress;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class OmsCompanyAddressImpl implements OmsCompanyAddressApi{
    @Autowired
    private OmsCompanyAddressMapper omsCompanyAddressMapper;
    /**
     * 获取所有收货地址
     * @return
     */
    @Override
    public List<OmsCompanyAddress> list() {
        return omsCompanyAddressMapper.selectList(new LambdaQueryWrapper<OmsCompanyAddress>());
    }
}
